package com.soushangxing.comfyuibackendv2.repository

import com.soushangxing.comfyuibackendv2.entity.FileEntity
import org.springframework.data.mongodb.repository.MongoRepository
import java.time.LocalDateTime

interface FileRepository : MongoRepository<FileEntity,String> {
    fun findByRelativePath(relativePath:String):FileEntity?

    fun findByCreateTimeBefore(cutoffTime: LocalDateTime): List<FileEntity>
}
